//
//  MovieTableViewCell.m
//  UI13-豆瓣电影
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MovieTableViewCell.h"

@implementation MovieTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.beijing = [[UIImageView alloc]init];
        [self.contentView addSubview:_beijing];

        self.movie = [[UIImageView alloc]init];
        _movie.backgroundColor = [UIColor yellowColor];
        [self.beijing addSubview:_movie];
        
        
        self.movieName = [[UILabel alloc]init];
       // _movieName.backgroundColor = [UIColor yellowColor];
        [self.beijing addSubview:_movieName];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _beijing.frame = CGRectMake(10, 10, self.contentView.bounds.size.width - 20, self.contentView.bounds.size.height - 20);
    _beijing.image = [UIImage imageNamed:@"bg_eventlistcell"];
    
    
    _movie.frame = CGRectMake(5, 10, 100,120 );
    
    

    _movieName.frame = CGRectMake(120, 50, 200, 30);

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
